home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000038_pytcayrn@freemail.hu_Tue Oct 29 09:56:51 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  68 lines

  1. Article: 13801 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: pytcayrn@freemail.hu
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: redirect io to external cmd (like cu "~|cmd" and "~$cmd")
  6. Date: 29 Oct 2002 01:37:33 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 49
  9. Message-ID: <86c66124.0210290137.a992437@posting.google.com>
  10. References: <86c66124.0210280643.30d17ab6@posting.google.com> <apjj8d$pk3$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: 193.225.153.29
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1035884253 26477 127.0.0.1 (29 Oct 2002 09:37:33 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 29 Oct 2002 09:37:33 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13801
  18.  
  19. Thanks a lot, that's exactly what I was looking for.
  20.  
  21. I managed to log the output to a file, and then "tail -f" the file to
  22. "od", so this solved my problem. BTW logging the output to "|od >
  23. session.log" failed for me (the "od" process didn't even show up in
  24. "ps -ef"). I guess I well escaped the space characters with an "\".
  25.  
  26. I few other questions that I would be very happy to get some answer:
  27. How can I stop kermit to print the data to the screen, so that the
  28. data should only be printed to the session.log file?
  29.  
  30. Does kermit have an echo-like built-in function with which I could
  31. send binary data to the serial line from kermit prompt, e.g. "echo
  32. 0xFF,0x1D,0xB3" while the connection is alive and data is dumped to
  33. session.log ?
  34.  
  35. I am trying to communicate with a GPS receiver :)
  36.  
  37. Thanks again,
  38. Tamas
  39.  
  40.  
  41. fdc@columbia.edu (Frank da Cruz) wrote in message news:<apjj8d$pk3$1@watsol.cc.columbia.edu>...
  42. > In article <86c66124.0210280643.30d17ab6@posting.google.com>,
  43. >  <pytcayrn@freemail.hu> wrote:
  44. > : In C-kermit 7.0 (HP-UX), how can I redirect binary data coming from a
  45. > : directly connected device on /dev/tty0p2 to an external application
  46. > : like "od -tx1", so that decoded hexa numbers should appear on the
  47. > : screen after I issue a "CONNECT" command?
  48. > : 
  49. > You can't make hex numbers appear on the screen but you can make them
  50. > go into a session log file:
  51. >   set port /dev/tty0p2
  52. >   set speed 57600  ; or whatever
  53. >   set flow rts/cts ; or whatever
  54. >   set session log binary
  55. >   log session "|od -tx1 > session.log"
  56. > : And how can I do the reverse:
  57. > : starting an external command whose output is dumped to the serial
  58. > : line?
  59. > : 
  60. > redirect <command>
  61. > : These functions exist in "cu" ("~|cmd" and "~$cmd") but using them in
  62. > : kermit would be more convenient.
  63. > - Frank
  64.